home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Updater⁄Infos / ScriptWiz.15f1.PPC folder / SW 1.5 read-me < prev   
Text File  |  1995-05-29  |  21KB  |  396 lines

  1.  
  2. ScriptWizard 1.5f1 pre-release package
  3. 29 May 1995
  4.  
  5. ••• This release is supplied as a 'patch' file that updates version 1.0.1x41 of ScriptWizard to version 1.5f1. The patcher will not update any other version. The result of the patch is a date-limited program that will expire at the end of June 1995. •••
  6.  
  7. This is a candidate for release as ScriptWizard 1.5. Please inform us of any bugs you discover, and please let us have your feedback; we intend to release the software soon.
  8.  
  9. Please send all your bug reports and feedback to this electronic mail address:
  10. support@fullmoon.com.
  11.  
  12. Note: The  'patch' files have been reported to conflict with some virus checking and data compression system extensions; if you have trouble applying the patches please reboot with all extensions turned off and try again, before contacting us.
  13.  
  14. Special note: we've had reports that certain resources inside the ScriptWizard 1.5 program file are corrupt and can't be opened in ResEdit; the truth is that they are not corrupted, we are using software that compresses the contents of the program file and as a side effect of this, the program's resources are not hackable in ResEdit. Sorry.
  15.  
  16.  
  17. "True" single stepping
  18.  
  19. This version of ScriptWizard supports 'true' single stepping: even if the event log window is closed, when single stepping is activated the lines of AppleScript in the script editing window will be highlighted one by one as script execution proceeds. You can step through subroutine invocations and message sends. To see the script source code "animate" while the script actually runs, start single stepping as normal, and as soon as the first line of the script is highlighted click the "run" button.
  20.  
  21. When you single-step a script, ScriptWizard has to do a little bit of work to prepare itself. If the script is very long, this can take up to a minute or more. If ScriptWizard is unable to cope with single stepping a particular script (maybe because of a bug in ScriptWizard) it will report the problem via an alert window. If you disable 'animated single stepping' in the Script menu, the program will instead use the simple Apple event stepping mechanism supported in ScriptWizard 1.0. If you find a reproducible case in which ScriptWizard refuses to step your script, please send the script by email to us, so we can identify the problem.
  22.  
  23. A new version of the "pause script" OSAX is supplied with SW 1.5; this must be installed for animated single-stepping to work. An error message is shown if it is missing, or if an out of date version is present.
  24.  
  25.  
  26. ScriptWizard 1.5f1
  27.  
  28. This version expires at the end of June 1995. Here are the main differences from v1.5b7:
  29.  
  30. - provision of a general Preferences window, to let user select:
  31.     - max number of entries in dictionaries menu
  32.     - whether to use Live scrolling
  33.     - whether to display progress window during compilations
  34.  
  35. - save dictionaries list in reverse order, so it isn't reversed on re-loading
  36.  
  37. - added erase adorner to text view in script edit window, to overcome redrawing problems
  38.  
  39. - clear result window before running script, & don't display it if no result
  40.  
  41. - fixed problem of script window scrolling to wrong location after script syntax check
  42.  
  43. - stop cursor from being set to an arrow during script compilation
  44.  
  45. - don't allow Dictionary windows to be opened if memory is low (fixes potential crasher)
  46.  
  47.  
  48. ScriptWizard 1.5b7
  49.  
  50. This version expires at the end of May 1995. Here are the main differences from v1.5b6:
  51.  
  52. - moved 'open finder dictionary' and 'open system dictionary' commands to new 'Open Special Dictionary' hierarchical submenu of the File menu
  53.  
  54. - when opening dictionaries, append name to above submenu, so user can quickly reopen favourite dictionaries; store contents of menu in the app preferences file for subsequent runs; if on restarting the app a file referred to in the list can't be found, it is deleted from the list
  55.  
  56. - to clear out the dictionaries menu: {i} throw away the ScriptWizard preferences file, or {ii} delete all 'DICT' resources from it
  57.  
  58. - bug fix: don't allow changes to description of read-only file
  59.  
  60. - update variable watcher even if user cancelled script
  61.  
  62. - don't force-select script edit window every step (let user control front  window), per req. from chuck pelto; instead, call SetFrontProcess to force the app to the front
  63.  
  64. - don't let user save script if script is busy
  65.  
  66. - don't display scrollbar in description pane unless it is needed
  67.  
  68. - bug fix: if single stepping, synchronize display of variables in variable watcher
  69.  
  70. - moved 'AppleScript formatting' menu items to the bottom of the Scripts menu
  71.  
  72. - added new menu command to Edit menu: 'Modify Read-Only File' (only enabled for script and text files that have a projector 'ckid' resource)
  73.  
  74. - implemented projector awareness (don't allow editing of a read-only script, and write 'ckid' resource when saving files)
  75.  
  76. - show read-only symbol in script window header if doc is read-only (this includes during script runs, when a script is not editable)
  77.  
  78. - bug fix: don't allow drag moves or drag reception in read-only scripts
  79.  
  80. - don't display results window unless it contains a result, and once it has been displayed, don't hide it unless the user wants to hide it
  81.  
  82. - changed email addresses in extra 'about' box
  83.  
  84. - make sure that script edit view won't accept drops when changes disabled
  85.  
  86. - set drag move zone to 'view' in Script Edit window and in Find/Replace window, so drag moves are handled correctly
  87.  
  88. - shrink text in Script Edit and event log windows if they get too full
  89.  
  90. - tried to find out why Paste Reference was (on 19/4/95) reportedly pasting the raw ospec data instead of pasting proper decompiled text, but could not reproduce the problem at all
  91.  
  92. - disabled dragging from status window & from debug transcript window
  93.  
  94. - modified about box's 'more info' screen so that version info is shown
  95.  
  96. - re-enabled drag & drop throughout program (text panes only; can't drag from text lists yet)
  97.  
  98.  
  99. ScriptWizard 1.5b6x3
  100.  
  101. We have renumbered the program 'v1.5' in view of the major enhancements it offers over v1.0.
  102.  
  103. Version 1.5b6x3 differs from version 1.1b5x21 as follows:
  104.  
  105. • many bug fixes for event logging (log/start log/stop log aevts):
  106.     - log & start log should only have an effect if log window is open
  107.  
  108. • small reorganizations of app & doc initializations, to make profiling easier
  109. (& to speed app & doc loading a little, by deferring creation of windows)
  110.  
  111. • bug fixes: re-enabled "record" facility, and start/stop log from script features
  112.  
  113. • allow application to sleep, when polling for events while script is running
  114. (but don't sleep, if script is compiling, to improve compilation speed)
  115.  
  116. • bug fix: result window wasn't cleared if no new new value resulted from run
  117.  
  118. • bug fix: result window wasn't cleared before stuffing new values
  119.  
  120. • user can hold down option key, to force compilation, when asking for syntax check
  121.  
  122. • new shortcut: command-shift-S single steps
  123.  
  124. • description pane in script editor now has vertical scroll bar
  125.  
  126. • fixed bug: handlers popup wrongly identified 'script xxx' even if the keywords were split over a line ending
  127.  
  128. • new "about box" picture
  129.  
  130. • fixed printing bug: 1.1b5 & some prior versions split lines of script text over page breaks; this is fixed in 1.5b6
  131.  
  132. • fixed bug: block endless loops while doing wrap-around replace all
  133.  
  134. • fixed bug: made 'replace again' work
  135.  
  136.  
  137. ScriptWizard 1.1b5x21
  138.  
  139. Version 1.1b5x21 differs from version 1.1b4x17 as follows:
  140.  
  141. • fixed bug: compile script AE (from one open script to another) did not work
  142.  
  143. • changed aete IDs of all error record fields, to avoid namespace conflicts
  144.  
  145. • moved "show debug log" command to the "script" menu: this command is, now, only available if user holds down control & command keys during app startup (ie the end user won't see it)
  146.  
  147. • reinstated "use applescript formatting" menu command: now under "edit" menu
  148.  
  149. • bug fix: wrong view in script window was being printed
  150.  
  151. • added new checkbox to Find/Replace window, to allow user to specify wrap-around searches (which defaults to being on)
  152.  
  153. • pick up options for case sensitivity and wrap around searches whenever "finding/replacing again", so user can change check boxes and continue searching using menu commands
  154.  
  155. • include a page header (showing document name and page number) when printing scripts and dictionaries
  156.  
  157. • fit script width to page, when printing (bug: it seems that lines can sometimes be split across pages, even though MA's TEView is supposed to stop this happening)
  158.  
  159. • if checking script syntax detects a script syntax error, script is marked as dirty again (to make sure it's ready for a recompile)
  160.  
  161. • rebuilt "pause script" OSAX as final 1.1 version candidate
  162.  
  163. • another attempt at making sure that after recompiling the original selection is maintained (for some reason, scrolls selection to top of window)
  164.  
  165. • don't attempt to check script syntax if saving/closing text-only file
  166.  
  167. • if no compiled script available when saving, always try to save a text file
  168.  
  169. • lots of debugging of document save functions to make sure right file info is written (to overcome odd bugs where saved file ended up with wrong type, rendering file un-readable)
  170.     - known bug remaining: if try to save script file over existing text
  171.       file, and then subsequently save as text over same script file, it won't
  172.       change file type (ie only saves script file) - no data is lost, though
  173.  
  174. • bug fix: SW was trashing memory when certain "save" and "save as" operations failed; for instance, this sequence of events would cause a crash (it is fixed in 1.1b5):
  175.         - open text file
  176.         - save as text copy1
  177.         - close
  178.         - open text copy1
  179.         - save as text copy2
  180.         - change & compile
  181.         - save (as script) over same file
  182.         - fails, file busy
  183.         - save again over same file
  184.         - fails with wierd error, & deletes temp & new files
  185.         - memory trashed:(spurious?) address error changing icons in toolbar
  186.  
  187.  
  188. ScriptWizard 1.1b4x17
  189.  
  190. Version 1.1b4x17 differs from version 1.1b3x47 as follows:
  191.  
  192. • Made Dictionary window's default formatting match the Apple Script Editor. Also, you can change the formatting of Dictionary window listings via the AS formatting window.
  193.  
  194. • "Find" menu and "Script" menu now place checkmarks against the menu items that open windows, and these menu items can now be used to close already-open windows.
  195.  
  196. • Bug fix: script edit window remembers the current scroll position and the original insertion point is restored after a script is syntax-checked.
  197.  
  198. • Bug fix: can now "save as" applet/droplet again (bug introduced in 1.1b3).
  199.  
  200. • Bug fix: original applet's 'SIZE' resources are restored after applet is re-saved.
  201.  
  202. • Bug fix: Find window always pre-selects the target text when it is reopened.
  203.  
  204. • Bug fix: event log always transcribes the "log" event.
  205.  
  206. • A new version of the "pause script" OSAX is supplied; this must be installed for animated single-stepping to work. An error message is shown if it is missing, or if an out of date version is present.
  207.  
  208. • Variable watcher window now longer zoomable (workaround for bug: zooming variable watcher window, in 1.1b3 could render the lower pane of the window invisible).
  209.  
  210.  
  211. ScriptWizard 1.1b3x47
  212.  
  213. Version 1.1b3x47 differs from version 1.1b2x14 as follows:
  214.  
  215. • 'Subject' attribute of incoming Apple events is recognized again.
  216.  
  217. • Text window drag initiation has been disabled.
  218.  
  219. • Optimised display of dictionary window text (makes it faster).
  220.  
  221. • Dictionary window no longer sorts contents of event/class lists.
  222.  
  223. • PowerMac native and 68K native versions of program included (when program ships these will be combined into one fat binary).
  224.  
  225.  
  226. ScriptWizard 1.1b2x14
  227.  
  228. Version 1.1b2x14 differs from version 1.1b1x4 as follows:
  229.  
  230. • Bug fix: no longer fails preparing very short scripts for single stepping.
  231.  
  232. • Bug fix: last line in script wasn't single stepping (no step helper).
  233.  
  234. • Removed go-away box from progress window.
  235.  
  236. • Added go-away box to toolbar windows.
  237.  
  238. • Bottom pane of variable watcher now has vertical scroll-bar.
  239.  
  240.  
  241. ScriptWizard 1.1b1x4
  242.  
  243. Version 1.1b1x4 differs from version 1.1a6x23 as follows:
  244.  
  245. • Find/replace now uses a much faster Boyer-Moore search engine. 
  246.  
  247. • 'Replace all' reinstated.
  248.  
  249.  
  250. ScriptWizard 1.1a6x23
  251.  
  252. Version 1.1a6x23 differs from version 1.1a5x44 as follows:
  253.  
  254. • Find/replace working again.
  255.  
  256. • 'Locate' popup working again.
  257.  
  258. • 'Paste reference' working again.
  259.  
  260. • Drag & drop support is now in place; some bugs & sporadic crashes have been noticed in internal testing; please report any cases you find so we can reproduce & fix the problem.
  261.  
  262. • 'Pause Script' OSAX revised, & debug helper apple event implemented so that SW can check the version of 'Pause script' that is currently installed, and inform user if it's out of date.
  263.  
  264. • Memory used for script analysis during the 'preparing for single stepping' phase is now allocated from temporary memory.
  265.  
  266. • User is alerted if true single stepping failed, because of: {i} missing or out of date 'pause script' OSAX; or {ii} some failure (like, out of memory) stopped script analysis.
  267.  
  268. • A status window is displayed while script analysis proceeds.
  269.  
  270. • Fake '¬\n' line endings previously caused script analysis to fail; this has been fixed.
  271.  
  272.  
  273. ScriptWizard 1.1a5x44
  274.  
  275. Suggested run-time memory requirements have increased to 2MB; the extra is required for single stepping.
  276.  
  277. Version 1.1a5x44 differs from version 1.1a5x1 as follows:
  278.  
  279. • Find/replace, 'locate' popup, and tabs are all broken, temporarily.
  280.  
  281. • Fixed bug: was updating from wrong script when rebuilding var watcher while single stepping. Variable watcher now works correctly.
  282.  
  283. • Modified "pause script" handler so it causes an immediate single step (in answer to complaint in MW US review).
  284.  
  285. • Fixed bug that stopped user breaking out of pause loop.
  286.  
  287. • Fixed bug that caused first line to be executed without stepping.
  288.  
  289. • A bunch of bugs in the single stepping mechanism have been fixed, that should allow it to work correctly. Further bug reports are of course very welcome.
  290.  
  291.  
  292. ScriptWizard 1.1a5x1
  293.  
  294. Version 1.1a5x1 differs from version 1.1a4 as follows:
  295.  
  296. • The Startup screen is now displayed for longer, and it goes away automatically, without delaying the startup process.
  297.  
  298. • Substantial (internal) changes to remove the program's dependency on the WSE text editing engine; future releases will offer an alternative text editing engine. (The current release still uses WSE.) If you discover any new bugs in the text editor please let us know.
  299.  
  300. • A new version of the "pause script" OSAX is included - this must be installed in your Scripting Additions folder, or single stepping will not work!
  301.  
  302. • Single stepping works differently to prior releases. We've been listening to the criticisms of our users (and the press!) and we've implemented real single stepping. There is a short delay the first time (after loading or making changes to the script) you click the single step button, while ScriptWizard analyses the script; following this delay, each executable line of script is highlighted in the script editor window before it is executed. So, ScriptWizard now supports "true" single stepping. If you prefer to use the old "Apple event stepping" mechanism un-check the "Animate while Checking" item in the Script menu.
  303.  
  304. Notes on single stepping:
  305.  
  306. – The single stepping mechanism being used is fully compatible with the normal OSA APIs, and is internationalizable so it is not restricted to the US English dialect of AppleScript (unlike other single stepping schemes that have been suggested). The current release of ScriptWizard is specific to the AppleScript English dialect but this restriction will be removed shortly. We are committed to fully supporting all international dialects of AppleScript.
  307.  
  308. – When a script execution error occurs during single stepping, the currently executing line will be highlighted, not the sub-expression in which the failure occurred.
  309.  
  310.  
  311. ScriptWizard 1.1a4
  312.  
  313. Version 1.1a4 differs from version 1.1a3 as follows:
  314.  
  315. • lots of internal bug fixes to reduce and/or eliminate bad pointer references when starting up and when saving files;
  316.  
  317. • the Variable Watcher has been rewritten; two main changes visible to users are:
  318. - there is a user-resizable lower pane that, when you click on a variable name in the list, displays the selected variable's value in full (no truncation if you resize the pane to fit it);
  319. - the internal mechanisms display longer variable lists faster;
  320.  
  321. • the crash that ocurred when saving a script as a mini-application has been fixed (correcting this took most of our time this week, which is why there are so few user-visible changes).
  322.  
  323.  
  324. ScriptWizard 1.1a3
  325.  
  326. Version 1.1a3 differs from version 1.1a2 as follows:
  327.  
  328. • a window showing the program's version number is shown during initialization;
  329.  
  330. • the panes of Dictionary windows can be resized by the user;
  331.  
  332. • printable panes of windows are pre-activated when the windows are opened, so that the file menu print commands are always available;
  333.  
  334. • documents should now be openeable even if no printer driver is selected in the Chooser (this bug fix not yet tested);
  335.  
  336. • the debug log window is now printable;
  337.  
  338. • the names of properties of error records and error ranges (see below) have been changed by the addition of underscores in place of white space, to avoid conflicts with predefined names in AppleScript 1.1 (these conflicts stopped use of shortcut "on error" handlers)
  339.  
  340. • a script run in one document can now run another script document, or send arbitrary Apple event messages to it; the syntax to use is something like this:
  341.  
  342.     tell document "my compiled script"
  343.         callMySubroutine(param1, param2) -- sending an arbitrary message
  344.     end tell
  345.  
  346. or
  347.  
  348.     tell document "my compiled script"
  349.         run -- sending a predefined Apple event
  350.     end tell
  351.  
  352. Although the above works, there are still a few tweaks to be made: in particular, the target script can only be addressed as a named document, not as a window; the target script must already be compiled (ie you need to check syntax if you've edited it); you can't do single step debugging properly inside scripts called from other scripts.
  353.  
  354. This will be a great way to debug script applications: send them "open document" and "idle" Apple events from another script document, while both are open in ScriptWizard. Feedback on all this will be welcomed.
  355.  
  356.  
  357. ScriptWizard 1.1a2
  358.  
  359. Version 1.1a2 differs from version 1.0.1 as follows:
  360.  
  361. • the following new apple events have been defined; they accept script source code, or compiled script objects, or file aliases as their arguments  (see the Dictionary for fuller details), and allow ScriptWizard to act as a background script compilation and execution server:
  362. "compile script" -- same event name & ID as the one below
  363. "get source code"
  364. "do script" -- note that the option to initially pause script in the debugger is not yet active
  365.  
  366. • a new apple event for script editing has been defined, but not yet implemented:
  367. "edit script"
  368.  
  369. • the following new apple events have been defined (see the Dictionary for fuller details), and operate on open script documents (note: the direct object must be the script object, not the window); via these events, the script-control toolbar is now scriptable and recordable:
  370. "compile script"
  371. "run script" -- note that the option to initially pause script in the debugger is not yet active
  372. "step script"
  373. "pause script"
  374. "stop script"
  375. "start recording"
  376. "stop recording"
  377.  
  378. • two new Apple event classes have been defined to return error status information after a script compilation or execution failure: script error record, and script error range (see the Dictionary for fuller details; the properties of these records are defined in the standard Apple event registry); after a failure has been reported, send the following new apple event message to get full details of the error:
  379. "script error"
  380.  
  381. • the Core suite of Apple events is declared in the 'aete' resource, and mostly works (for instance, document and window operations are scriptable and recordable; text editing within windows is not yet scriptable, however)
  382.  
  383. • a new "debug log" window can be opened from the Windows menu; this window will not be available in the shipping version of SW; it can be used to log and examine Apple events received by ScriptWizard
  384.  
  385. • the toolbar can be shown and hidden (using the Windows menu) and it can be toggled between horizontal and vertical states by clicking in the Zoom widget; the toolbar state is remembered in the application preferences file
  386.  
  387. • it requires more memory; the default memory partition is 1600K, not 1200K (this is partly down to debugging code that has been inserted for our own use)
  388.  
  389. • opening the Dictionary windows is currently slower than in 1.0.1; this part of the code is due for a re-write in the 1.1 release, so please be patient
  390.  
  391. • scrollbars are 'live" (feedback is immediate during scrolling)
  392.  
  393.  
  394.  
  395. Software and Documentation © Copyright commstalk, 1994-5. All Rights Reserved.
  396.